package com.gdk.subject.domain.convert;

import com.gdk.subject.domain.entity.SubjectCategoryBO;
import com.gdk.subject.domain.entity.SubjectInfoBO;
import com.gdk.subject.domain.entity.SubjectOptionBO;
import com.gdk.subject.infra.basic.entity.SubjectCategory;
import com.gdk.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author Gudong~
 * @create 2024-10-21 16:01
 */

@Mapper
public interface SubjectInfoConverter {

    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo convertBoToInfo(SubjectInfoBO subjectInfoBO);

    SubjectInfoBO convertOptionAndInfoToBO(SubjectOptionBO subjectOptionBO, SubjectInfo subjectInfo);

    List<SubjectInfoBO> convertListToBO(List<SubjectInfo> subjectInfoList);
}
